package unit4_1015.test3;

public class Master {
	
	public void cure(Pet pet) {
		//如果宠物的健康值低于60就送宠物医院看病
		if(pet.getHealth()<60) {
			pet.toHospital();
		}else {
			System.out.println("宠物狗很健康,不需要去医院");
		}
	}
	
	public void feed(Pet pet) {
		pet.eat();
	}
	
	
}
